import { Authority } from '../request'

const { post, get } = Authority

// 获取标准地址(9级地址)数据
export const getAllRegionList = params => get('/bscpublic/region/business/region/v1/getAllRegionList', { params })

// 搜索地址
export const searchRegion = params => post('/bscpublic/region/business/region/v1/searchRegion', params)

// 获取标准地址(居住地址)数据
export const getDwellRegionList = params => get('/bscpublic/region/business/region/v1/getDwellRegionList', { params })

// 获取地址类型下拉列表
export const getRegionTypeList = params => get('/bscpublic/region/business/region/v1/getDictData', { params })

// 添加标准五级地址
export const addStandardFiveRegion = params => post('/bscpublic/region/business/region/v1/addStandardFiveRegion', params)

// 修改标准五级地址
export const updateStandardFiveRegion = params => post('/bscpublic/region/business/region/v1/updateStandardFiveRegion', params)

// 删除地址
export const deleteRegion = params => get('/bscpublic/region/business/region/v1/deleteRegion', { params })